package cn.sany.cterminal.dao;

import cn.sany.cterminal.entity.FaultRateVo;
import cn.sany.cterminal.entity.HistoryInfo;
import cn.sany.cterminal.entity.StatisticHistory;
import cn.sany.cterminal.entity.request.StatisticQueryParam;

import java.util.Date;
import java.util.List;

public interface StatisticHistoryDao {
    int deleteByPrimaryKey(Integer id);

    int insert(StatisticHistory record);

    int insertSelective(StatisticHistory record);

    StatisticHistory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StatisticHistory record);

    int updateByPrimaryKey(StatisticHistory record);
    int batchInsert(List<StatisticHistory> historyInfoList);

    List<StatisticHistory> getAfterTimeFirstInfoList(StatisticQueryParam statisticQueryParam);

    Integer selectYesterdayOnLineNum();

    Integer selectYesterdayFaultNum();
    /**
     *
     * @Method : getCurrentDayList
     * @Description : 获取当天历史记录
     * @return : java.util.List<cn.sany.cterminal.entity.StatisticHistory>
     * @author : zhouxing
     * @CreateDate : 2020-09-30 08:53:45
     *
     */
    List<StatisticHistory> getCurrentDayList(Date date);

    List<StatisticHistory> getFaultRatioList(StatisticQueryParam statisticQueryParam);
}